package com.huangwenshuo.futurestarschoolmanagement.mapper;

import com.huangwenshuo.futurestarschoolmanagement.pojo.dto.ActivityDto;
import com.huangwenshuo.futurestarschoolmanagement.pojo.po.ActivitysPo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huangwenshuo.futurestarschoolmanagement.pojo.vo.ActivitysVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huangwenshuo
 * @since 2021-02-28
 */
@Mapper
public interface ActivitysMapper extends BaseMapper<ActivitysPo> {

    List<ActivitysVo> getActivitys(@Param("dto") ActivityDto.ActivityPage activityPage);

    ActivitysVo getActivityById(@Param("dto")ActivityDto.ActivityPage activityPage);

    Integer getActivityByIdTotal(@Param("dto") ActivityDto.ActivityPage activityPage);

    ActivitysVo selectAct(@Param("dto") ActivityDto.UpdateAct updateAct);

    void updateAct(@Param("dto") ActivityDto.UpdateAct updateAct);

    void addAct(@Param("dto") ActivityDto.AddAct addAct);

    ActivitysVo selectActByAid(Integer aid);

    List<ActivitysVo> getActApply(@Param("dto") ActivityDto.ActivityPage activityPage);

    Integer getActApplyTotal(ActivityDto.ActivityPage activityPage);
}
